#!/bin/bash

fd_install_source=/usr/local/software/

home=/usr/local/MQ

mkdir -pv ${home}

rm -rf ${home}/*

cd ${home}

tar -zxvf ${fd_install_source}/apache-activemq-5.9.0-bin.tar.gz

fd_target_item=`ls -l |grep apache-activemq* |awk '{print $NF}'`

cd ./${fd_targder_item}/bin

#修改文件运行权限
chmod 755 ./activemq


./activemq restart